/**
 * 
 */
package org.braketester.entry;

import javax.swing.JOptionPane;

/**
 * @author LAP
 *
 */
public class ExceptionResolver {
	
	private ExceptionResolver() {
		
	}
	
	private static class ExceptionResolverHolder {
		public static final ExceptionResolver INSTANCE = new ExceptionResolver(); 
	}
	
	public static ExceptionResolver getInstance() {
		return ExceptionResolverHolder.INSTANCE;
	}
	
	public void showException(Exception exception) {
		logException(exception);
		JOptionPane.showMessageDialog(null, exception.getMessage(), "Exception", JOptionPane.ERROR_MESSAGE);
	}
	
	public void logException(Exception exception) {
		// TODO add logging
	}
}
